#include "log_adapter.h"
#include <windows.h>
#include <securec.h>

std::string MediaGetTime()
{
    char buffer[30] = {0}; // 30
    SYSTEMTIME sys;
    GetLocalTime( &sys );
    snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "%02d-%02d %02d:%02d:%02d.%03d",
               sys.wMonth, sys.wDay, sys.wHour, sys.wMinute, sys.wSecond, sys.wMilliseconds);
    return buffer;
}
